package com.haizhi.crm.api.controller.sys.auth;

import com.haizhi.crm.common.model.Response;
import com.haizhi.crm.sys.auth.service.RelationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yangyijun on 2018/5/22.
 */
@Api(description = "[系统-关系]" )
@RestController
@RequestMapping("/relation" )
public class RelationController {

    @Autowired
    private RelationService relationService;

    @GetMapping("/findAll" )
    @ApiOperation(value = "查询所有关系" )
    public Response findAll() {
        return relationService.findAll();
    }
}
